package com.ruoyi.firefighterFire.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.firefighter.domain.Roleo;
import com.ruoyi.firefighterFire.domain.FirefighterFire;
import com.ruoyi.firefighterFire.service.IFirefighterFireService;
import com.ruoyi.screeningDate.domain.Dcdate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ifmEnlistIand.mapper.FirefighterFireMapper;


/**
 * 灭火救援岗位技能科目项目Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-31
 */
@Service
public class FirefighterFireServiceImpl implements IFirefighterFireService
{
    @Autowired
    private FirefighterFireMapper firefighterFireMapper;

    /**
     * 查询灭火救援岗位技能科目项目
     *
     * @param id 灭火救援岗位技能科目项目主键
     * @return 灭火救援岗位技能科目项目
     */
    @Override
    public FirefighterFire selectFirefighterFireById(Long id)
    {
        return firefighterFireMapper.selectFirefighterFireById(id);
    }

    /**
     * 查询灭火救援岗位技能科目项目列表
     *
     * @param firefighterFire 灭火救援岗位技能科目项目
     * @return 灭火救援岗位技能科目项目
     */
    @Override
    public List<FirefighterFire> selectFirefighterFireList(FirefighterFire firefighterFire)
    {
        return firefighterFireMapper.selectFirefighterFireList(firefighterFire);
    }

    /**
     * 新增灭火救援岗位技能科目项目
     *
     * @param firefighterFire 灭火救援岗位技能科目项目
     * @return 结果
     */
    @Override
    public int insertFirefighterFire(FirefighterFire firefighterFire)
    {
        firefighterFire.setCreateTime(DateUtils.getNowDate());
        return firefighterFireMapper.insertFirefighterFire(firefighterFire);
    }

    /**
     * 修改灭火救援岗位技能科目项目
     *
     * @param firefighterFire 灭火救援岗位技能科目项目
     * @return 结果
     */
    @Override
    public int updateFirefighterFire(FirefighterFire firefighterFire)
    {
        firefighterFire.setUpdateTime(DateUtils.getNowDate());
        return firefighterFireMapper.updateFirefighterFire(firefighterFire);
    }

    /**
     * 批量删除灭火救援岗位技能科目项目
     *
     * @param ids 需要删除的灭火救援岗位技能科目项目主键
     * @return 结果
     */
    @Override
    public int deleteFirefighterFireByIds(Long[] ids)
    {
        return firefighterFireMapper.deleteFirefighterFireByIds(ids);
    }

    /**
     * 删除灭火救援岗位技能科目项目信息
     *
     * @param id 灭火救援岗位技能科目项目主键
     * @return 结果
     */
    @Override
    public int deleteFirefighterFireById(Long id)
    {
        return firefighterFireMapper.deleteFirefighterFireById(id);
    }

    @Override
    public FirefighterFire selectFirefighterInfoByIdAndName(Dcdate dcdate) {
        return firefighterFireMapper.selectFirefighterInfoByIdAndName(dcdate);
    }

    @Override
    public Roleo selectRoleName(Roleo role1) {
        return firefighterFireMapper.selectRoleName(role1);
    }

    @Override
    public FirefighterFire selectFirefighterFireList1(FirefighterFire firefighterFire) {
        return firefighterFireMapper.selectFirefighterFireList1(firefighterFire);
    }
}
